package com.zh.user.service.impl;

import com.zh.user.entity.SysPermission;
import com.zh.user.mapper.SysPermissionMapper;
import com.zh.user.service.SysPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 张行
 * @since 2021-02-07
 */
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission> implements SysPermissionService {

    /**
     * description: 根据用户名获取用户所拥有的权限
     * date: 2021年-04月-12日 15:32
     * author: zhanghang
     * 
     * @param username
     * @return java.util.Set<java.lang.String>
     */ 
    @Override
    public Set<String> getPermissionServiceByUsername(String username) {
        return baseMapper.getPermissionServiceByUsername(username);
    }
}
